//Page hold info of a site description and links to other pages.

#ifndef PAGE_H
#define PAGE_H

#include<string>

#include "LinkedList.h"
#include "URL.h"

using namespace std;

class Page{

      private:

			URL *url;
            string *description;
            //String containing site description
            LinkedList<URL> *links;
            //List of links to other valid sites on the page.

      public:

            Page(URL &page, string &text, LinkedList<URL> &addresses);
            Page(URL &page);
            Page(const Page &other);
            Page& operator =(const Page &other);
            ~Page();
            string getDescription();	//Getters
            LinkedList<URL> getLinks();
            int compare(Page &other);
            URL getURL();
            string print();
	friend ostream& operator<<(ostream &stream, Page *o);

};



#endif
